<?php	ob_start();
  include_once '../includes/session.php';
 include_once '../includes/constants.php';
 include_once '../includes/functions.php';

 $partners=new partners;
 $partners->connection($host,$user,$pass,$db);
 	//include"header.php";


	$affid	=	$_GET['id'];


	$sql	=	"select * from partners_affiliate where affiliate_id=$affid";
	$res	=	mysql_query($sql);

 while($row=mysql_fetch_object($res)){
         $affiliate_id			=	$row->	affiliate_id;
         $affiliate_firstname	=	stripslashes($row->affiliate_firstname);
         $affiliate_lastname	=	stripslashes($row->affiliate_lastname);
         $affiliate_company		=	stripslashes($row->affiliate_company);
         $affiliate_address		=	stripslashes($row->affiliate_address);
         $affiliate_city		=	stripslashes($row->affiliate_city);
         $affiliate_country		=	stripslashes($row->affiliate_country);
         $affiliate_phone		=	stripslashes($row->affiliate_phone);
         $affiliate_url			=	stripslashes($row->affiliate_url);
         $affiliate_category	=	stripslashes($row->affiliate_category);
         $affiliate_status		=	stripslashes($row->affiliate_status);
         $affiliate_date		=	stripslashes($row->affiliate_date);
         $affiliate_fax			=	stripslashes($row->affiliate_fax);
         $affiliate_state		=	stripslashes($row->affiliate_state);
         $affiliate_zip			=	stripslashes($row->affiliate_zipcode);
         $affiliate_taxId		=	stripslashes($row->affiliate_taxId);
         $affiliate_timezone  	=	stripslashes($row->affiliate_timezone);
         $affiliate_timezone    =   $timeZoneArray[$affiliate_timezone + 12];

         $emailQuery 	= " SELECT login_email FROM partners_login WHERE login_id = $affiliate_id AND login_flag='a'";
         $emailResult	= mysql_query($emailQuery);

         if(mysql_num_rows($emailResult)){
         	$emailRow 		 = mysql_fetch_object($emailResult);
            $affiliate_email = $emailRow->login_email;
         }

		}



//echo $merid."ok";






?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html>
<HEAD>
<TITLE>Affiliate Network Pro - Admin Panel</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<meta name="generator" content="Namo WebEditor v5.0(Trial)">
<link rel="stylesheet" type="text/css" href="admin.css">
</HEAD>
<SCRIPT type="text/javascript" LANGUAGE="javascript">



function button1_onclick() {
window.close();
}

</SCRIPT>

<!--<body bgcolor="#FFFFFF">-->

<table border='0' class="tablebdr" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="85%" id="AutoNumber1" >
  <tr>
    <td width="100%" colspan="5" class="tdhead" height="19" align="center">
    Affiliate's Profile </td>
  </tr>
  <tr>
    <td width="2%" height="19">&nbsp;</td>
    <td width="38%" height="19">ID</td>
    <td width="1%" height="19"><b>:</b></td>
    <td width="60%" height="19"><?=$affiliate_id?></td>
    <td width="1%" height="19">&nbsp;</td>
  </tr>
  <tr>
    <td width="2%" height="19">&nbsp;</td>
    <td width="38%" height="19">Email</td>
    <td width="1%" height="19"><b>:</b></td>
    <td width="60%" height="19"><?=$affiliate_email?></td>
    <td width="1%" height="19">&nbsp;</td>
  </tr>
  <tr>
    <td width="2%" height="19">&nbsp;</td>
    <td width="38%" height="19">Company Name</td>
    <td width="1%" height="19"><b>:</b></td>
    <td width="60%" height="19"><?=$affiliate_company?></td>
    <td width="1%" height="19">&nbsp;</td>
  </tr>
  <tr>
    <td width="2%" height="19">&nbsp;</td>
    <td width="38%" height="19">First Name</td>
    <td width="1%" height="19"><b>:</b></td>
    <td width="60%" height="19"><?=$affiliate_firstname?></td>
    <td width="1%" height="19">&nbsp;</td>
  </tr>
  <tr>
    <td width="2%" height="19">&nbsp;</td>
    <td width="38%" height="19">
    Last Name</td>
    <td width="1%" height="19"><b>:</b></td>
    <td width="60%" height="19"><?=$affiliate_lastname?></td>
    <td width="1%" height="19">&nbsp;</td>
  </tr>
  <tr>
    <td width="2%" height="19">&nbsp;</td>
    <td width="38%" height="19">Address</td>
    <td width="1%" height="19"><b>:</b></td>
    <td width="60%" height="19"><?=$affiliate_address?>
    </td>
    <td width="1%" height="19">&nbsp;</td>
  </tr>
  <tr>
    <td width="2%" height="17"></td>
    <td width="38%" height="17">City</td>
    <td width="1%" height="17"><b>:</b></td>
    <td width="60%" height="17"><?=$affiliate_city?></td>
    <td width="1%" height="17"></td>
  </tr>
 <tr>
    <td width="2%" height="17"></td>
    <td width="38%" height="17">State</td>
    <td width="1%" height="17"><b>:</b></td>
    <td width="60%" height="17"><?=$affiliate_state?></td>
    <td width="1%" height="17"></td>
  </tr>
   <tr>
    <td width="2%" height="17"></td>
    <td width="38%" height="17">Zip</td>
    <td width="1%" height="17"><b>:</b></td>
    <td width="60%" height="17"><?=$affiliate_zip?></td>
    <td width="1%" height="17"></td>
  </tr>
  <tr>
    <td width="2%" height="17"></td>
    <td width="38%" height="17">Country</td>
    <td width="1%" height="17"><b>:</b></td>
    <td width="60%" height="17"><?=$affiliate_country?> </td>
    <td width="1%" height="17"></td>
  </tr>
   <tr>
    <td width="2%" height="17"></td>
    <td width="38%" height="17">Tax Id</td>
    <td width="1%" height="17"><b>:</b></td>
    <td width="60%" height="17"><?=$affiliate_taxId?></td>
    <td width="1%" height="17"></td>
  </tr>
   <tr>
    <td width="2%" height="17"></td>
    <td width="38%" height="17">Time Zone</td>
    <td width="1%" height="17"><b>:</b></td>
    <td width="60%" height="17"><?=$affiliate_timezone?></td>
    <td width="1%" height="17"></td>
  </tr>
  <tr>
    <td width="2%" height="19">&nbsp;</td>
    <td width="38%" height="19">Phone</td>
    <td width="1%" height="19"><b>:</b></td>
    <td width="60%" height="19"><?=$affiliate_phone?></td>
    <td width="1%" height="19">&nbsp;</td>
  </tr>
  <tr>
    <td width="2%" height="19">&nbsp;</td>
    <td width="38%" height="19">URL</td>
    <td width="1%" height="19"><b>:</b></td>
    <td width="60%" height="19"><?=$affiliate_url?></td>
    <td width="1%" height="19">&nbsp;</td>
  </tr>
  <tr>
    <td width="2%" height="19">&nbsp;</td>
    <td width="38%" height="19">Category</td>
    <td width="1%" height="19"><b>:</b></td>
    <td width="60%" height="19"><?=$affiliate_category?></td>
    <td width="1%" height="19">&nbsp;</td>
  </tr>
  <tr>
    <td width="2%" height="19">&nbsp;</td>
    <td width="38%" height="19">Status</td>
    <td width="1%" height="19"><b>:</b></td>
    <td width="60%" height="19"><?=$affiliate_status?></td>
    <td width="1%" height="19">&nbsp;</td>
  </tr>
  <tr>
    <td width="2%" height="11"></td>
    <td width="38%" height="11">Date of Join</td>
    <td width="1%" height="11"><b>:</b></td>
    <td width="60%" height="11"><?=$affiliate_date ?></td>
    <td width="1%" height="11"></td>
  </tr>
  <tr>
    <td width="2%" height="15"></td>
    <td width="38%" height="15">Fax</td>
    <td width="1%" height="15"><b>:</b></td>
    <td width="60%" height="15"><?=$affiliate_fax?></td>
    <td width="1%" height="15"></td>
  </tr>
  <tr>
    <td width="100%" height="10" colspan="5" class="tdhead" align="center"><INPUT id=button1 class="textred" type=button align=middle value=close name=button1 onclick="return button1_onclick()"></td>
  </tr>
</table>

</body>
</html>

 <? /* include 'footer.php'; */?>